package com.sc.nft.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.google.common.collect.Lists;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

/**
 * 目前只取 NOT_APPLY  APPLYING 2个
 * @author liGen
 * @version 1.0
 * @date 2023/11/20 3:09 下午
 */
@AllArgsConstructor
@Getter
public enum MallOrderRefundStatusEnum {

    NOT_APPLY(0,"未申请"),
    APPLYING(1,"申请中"),
    REFUSE_REFUND(2,"拒绝退款"),
    REFUNDING(3,"退款中"),
    REFUND_SUCCES(4,"已退款"),
    CANCEL(5,"取消退款"),
    // 新售后状态 做兼容
    NEW_NOT_APPLY(6,"未申请"),
    NEW_APPLYING(7,"已申请售后"),
            ;
    @EnumValue
    private int code;
    private String description;


//    public static ArrayList<MallOrderRefundStatusEnum> getIsRefundStatus() {
//        ArrayList<MallOrderRefundStatusEnum> list = Lists.newArrayList();
//        list.add(NOT_APPLY);//未申请
//        list.add(REFUSE_REFUND); //拒绝退款
//        list.add(CANCEL); //取消退款
//        return list;
//    }
    public static ArrayList<MallOrderRefundStatusEnum> getIsIncomeStatus() {
        ArrayList<MallOrderRefundStatusEnum> list = Lists.newArrayList();
        list.add(NOT_APPLY);//未申请
        list.add(REFUSE_REFUND); //拒绝退款
        list.add(REFUND_SUCCES); //已退款
        list.add(CANCEL); //拒绝退款
        return list;
    }
}
